﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShivamEMR.Model.Domain.ContactsDomain;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.InventoryDomain
{
   public class Supplier
    {
        #region Properties
        public Guid ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string Notes { get; set; }
        #endregion

        #region ForeignKeyProperties
        public int SupllierGroupID { get; set; } 
        #endregion

        #region NavigationalProperteis
        [ForeignKey("SupllierGroupID")]
        public virtual SupplierGroup Group { get; set; }
        public virtual ICollection<Address> Addresses { get; set; }
        public virtual ICollection<Contact> Contacts { get; set; }
        #endregion
    }
}
